/*
** my_sort_int_tab.c for my_sort_int_tab in /home/nadali_t//afs/rendu/piscine/Jour_04
** 
** Made by thomas nadalie
** Login   <nadali_t@epitech.net>
** 
** Started on  Fri Oct  5 14:37:46 2012 thomas nadalie
** Last update Mon Nov 19 16:40:14 2012 thomas nadalie
*/

#include	"my.h"

void		my_sort_int_tab (int *tab, int size)
{
  int		i;

  i = 0;
  while (i < size)
    {
      if (tab[i] > tab[i + 1])
	{
	  my_swap(&tab[i], &tab[i + 1]);
	  i = -1;
	}
      i++;
    }
  i = 0;
  while (i < size)
    {
      my_putchar (tab[i] + 48);
      i++;
    }
}
